home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BlastDOS
/
[DOS_Application]_BIT_Software_-_BitCom_3.58c_-_Distribution_Disks.zip
/
ANSWER.ACT
< prev
next >
Wrap
Text File
|
1990-06-01
|
1KB
|
51 lines
trace(1)
{ This action file shows you how to use the new script language }
{ to turn your PC into a remote PC where people can call in }
{ This auto log file should be used in auto answer mode. }
{ When the phone ring, your modem answers and connects to the caller }
{ This action is invoked. }
{ The caller will be asked for a password. }
{ If he types in "JONATHAN", he is ok to proceed, otherwise, hangup }
{ If ok to proceed, he will be asked the file name he wants to receive }
{ Your PC will send him the file in ASCII mode }
{ }
twait(2,"sec");
@c=1 {counter for number of attempts for password}
:try
@RETURN
"ENTER PASSWORD:" {get password}
@a=getline
if (substr(@a, 1, 8) <> "JONATHAN") goto :badpw
goto :ok
{bad news}
:badpw
"$0d$0ABAD PASSWORD";@return
@c = expr(@c+1);
if (@c > 5) goto :kill {if more than 5 tries, hang up the line}
goto :try
{ now we got a good pass word }
:ok
clear
typecr("LOGON OK");
"$0d$0a"
"$0d$0a"
"WELCOME TO BITCOM$0d$0a"
"What file would you like?"
@a=getline
@b=EXIST(@a)
"$0d$0a"
if (@b = 0 ) goto :badfile
if (sendfile(@a, "ASCII") = -1) "Cannot open file$0a$0d";
exit
:kill
"Too many attempts..."
hangup
exit
:badfile
"File Not Found$0d$0a";
exit